Skip to content

Instantly share code, notes, and snippets.

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@krevedkin
krevedkin / README.md
Last active November 13, 2026 12:11
FastAPI: comma-separated lists in query parameters (PEP 695 type aliases + Pydantic 2)

CommaList: comma-separated query parameters for FastAPI

A reusable annotated type for FastAPI that accepts hello,world,etc as a query parameter and automatically parses it into a typed list — list[str], list[int], list[UUID], etc. — using a PEP 695 type alias and a Pydantic BeforeValidator.

Problem

Query parameters arrive as plain strings, so a list[T] annotation doesn't

---
name: cowork
description: 在 Herdr App 中以 Commander 身份运转一个 Agent 团队:用 hc CLI 在持久终端里启动、委派、跟踪和清理成员 Agent,维护仓库的 TEAM.md 注册表与通讯录,用 herdr-app 管理界面 tab。当用户要求协调多个 Agent、委派开发/训练/评测/构建任务、组建或接管 Agent 团队、维护 TEAM.md 时使用。
version: 1.1.0
allowed-tools:
- Bash(hc *)
- Bash(herdr-app *)
---
# Cowork:Herdr App 中的 Agent 团队
@markdrew156
markdrew156 / 123pan-download-without-account.md
Created November 12, 2026 08:59
How to download from 123pan (123云盘) without an account — no Chinese phone number (2026)

How to download from 123pan (123云盘 / 123雲盤) without an account — a free 123pan downloader, no Chinese phone number (2026)

✅ Working method (November 2026): baidufast.com

Paste the 123pan.com/s/… link (and its code, if any) → see the real size and price → get a direct download link. In short: a 123pan downloader that needs nothing from you. No 123pan account, no +86 number, no 123pan app, no monthly quota. Files under 150 MB are free.

🎬 One-minute video of the whole thing, start to finish: https://www.youtube.com/watch?v=tU4G1nz6WsU

Full disclosure: BaiduFast is my own service. It fetches the file for you at full speed and hands you a plain HTTPS link. This page is a how-to, not an independent review.

@markdrew156
markdrew156 / quark-pan-download-without-account.md
Created November 12, 2026 04:57
How to download from Quark Pan (pan.quark.cn / 夸克网盘) without an account or a Chinese phone number (2026)

How to download from Quark Pan (pan.quark.cn / 夸克网盘) without an account or a Chinese phone number (2026)

✅ Working method (November 2026): baidufast.com

Paste the pan.quark.cn/s/… link (and its code, if any) → see the real size and price → get a direct download link. No Quark account, no +86 number, no Quark app. Files under 150 MB are free.

Full disclosure: BaiduFast is my own service. It fetches the file for you at full speed and hands you a plain HTTPS link. This page is a how-to, not an independent review.

Why pan.quark.cn won't download for you

@markdrew156
markdrew156 / download-from-pan-baidu-com-outside-china-2026.md
Created November 12, 2026 02:16
How to download from pan.baidu.com outside China (2026) — Baidu Pan / Baidu Netdisk without a Chinese account

How to download from pan.baidu.com outside China (2026) — Baidu Pan / Baidu Netdisk without a Chinese account

TL;DR: pan.baidu.com (Baidu Pan, Baidu Netdisk, 百度网盘) will not let you download anything without a logged-in Baidu account, and a Baidu account needs a mainland Chinese phone number. The working route in 2026 is a link-to-download service: paste the share link plus its extraction code on baidufast.com, check the real size and price, and receive a normal HTTPS download link. Files up to 150 MB are free; larger files start at $0.98.

Disclosure: BaiduFast is my own service. I run it, so this is a how-to written by the operator, not an independent review. Everything about Baidu itself below is public and checkable.

Key facts (November 2026)

  • pan.baidu.com is Baidu's consumer cloud storage. It is the dominant way files are shared on Chinese forums, Bilibili, Zhihu, game-mod sites and course platforms. "Baidu Pan", "Baidu
@DownWithUp
DownWithUp / BeepDriverIOCTL.c
Created October 26, 2018 13:48
Use an IOCTL to create a beep from Beep.sys
#include <Windows.h>
#include <stdio.h>
#include <winternl.h>
typedef struct _BEEP_SETTINGS {
ULONG ulFrequency;
ULONG ulDuration;
} BEEP_SETTINGS;
void main() {
@igv
igv / adaptive-sharpen.glsl
Last active November 13, 2026 12:02
Optimal sharpening strength (according to objective metrics) - 0.5. Can be applied only to luma channel (change OUTPUT to LUMA). To use it on-demand add the following line to input.conf: n change-list glsl-shaders toggle "~~/adaptive-sharpen.glsl"
// Copyright (c) 2015-2021, bacondither
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer
// in this position and unchanged.
// 2. Redistributions in binary form must reproduce the above copyright

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.